<template>
  <div>

    <van-tabbar v-model="active">
      <van-tabbar-item name="home" icon="home-o" @click="tiaozhuanFn('/Reading')">阅读</van-tabbar-item>
      <van-tabbar-item name="search" icon="search" @click="tiaozhuanFn('/bookshelf')">书架</van-tabbar-item>
      <van-tabbar-item name="friends" icon="friends-o"  @click="tiaozhuanFn('/find')">发现</van-tabbar-item>
      <van-tabbar-item name="setting" icon="setting-o" @click="tiaozhuanFn('/Mine')">我</van-tabbar-item>
    </van-tabbar>
  </div>
</template>
<script>

export default {
  name: "Downbar",
  data() {
    return {
      active: 0,
    };
  },
  methods :{
    tiaozhuanFn(go){
      console.log(1)
      this.$router.push({path : go})
    }
  }
};
</script>